<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp" %>
<%@ include file="/WEB-INF/views/templete/hplus/head.jsp" %>
<html>
<head>
    <link href="${ctxStatic}/hplus/css/plugins/dataTables/dataTables.bootstrap.css" rel="stylesheet">
	<title>反馈建议管理</title>
	<script type="text/javascript">
		$(document).ready(function() {
            $('.dataTables-example').dataTable();
		});
		function page(n,s){
			$("#pageNo").val(n);
			$("#pageSize").val(s);
			$("#searchForm").submit();
        	return false;
        }
	</script>
</head>
<body class="gray-bg">

	<div class="wrapper wrapper-content animated fadeInRight">
		<div class="row">
			<div class="col-sm-12">
				<div class="ibox float-e-margins">
					<div class="ibox-title">
						<h5>反馈<small></small></h5>
					</div>
					<div class="ibox float-e-margins" style="margin-bottom:0px;margin-top: -1px">
						<div class="row">
							<div class="col-sm-12">
								<div class="ibox-content">
									<form:form role="form" id="searchForm" modelAttribute="feedback" action="${ctx}/task/feedback/customer" method="post" >
										<div class="form-group">
											<label class="col-sm-1 control-label">反馈内容：</label>
											<div class="col-sm-7">
												<form:input path="content" htmlEscape="false" maxlength="64" class="form-control"/>
											</div>
										</div>
										<input id="btnSubmit" class="btn btn-primary" type="submit" value="查询"/>
									</form:form>
								</div>
							</div>
						</div>
					</div>
					<div class="ibox-content">
						<table class="table table-striped table-bordered table-hover dataTables-example font_word">
							<thead>
							<tr>
								<th>渲染引擎</th>
								<th>浏览器</th>
								<th>平台</th>
								<th>引擎版本</th>
								<th>CSS等级</th>
							</tr>
							</thead>
							<tbody>
							<tr class="gradeX">
								<td>Trident</td>
								<td>Internet Explorer 4.0
								</td>
								<td>Win 95+</td>
								<td class="center">4</td>
								<td class="center">X</td>
							</tr>
							<c:forEach items="${page.list}" var="feedback">
								<tr >
									<td>${feedback.content}</td>
									<td>${feedback.state=='unread'?'未读':'已读'}</td>
								</tr>
							</c:forEach>
							</tbody>
						</table>
					</div>
				</div>
			</div>
		</div>
	</div>

	<div class="pagination">${page}</div>
</body>
</html>